<?php

class MenuController extends Zend_Controller_Action
{

    public function init()
    {
        /* Initialize action controller here */
    }

    public function indexAction()
    {
        // action body
    }

    public function navAction()
    {
        //Initialize the navigation container
        $config = new Zend_Config_Xml(APPLICATION_PATH . '/configs/NavMenu.xml');
        $container = new Zend_Navigation($config);
        
        //Iterate over the container
        // Display page information
        foreach(new RecursiveIteratorIterator(
        	$container, RecursiveIteratorIterator::CHILD_FIRST) as $page){
        		echo $page->getLabel();
        	}
    }

}



